package com.itheima.dao;

import com.itheima.pojo.HotSetmealVo;
import com.itheima.pojo.Member;
import com.itheima.pojo.MobileOrderVo;
import com.itheima.pojo.Order;
import org.apache.ibatis.annotations.Param;
import org.aspectj.weaver.ast.Or;

import java.util.List;
import java.util.Map;

public interface OrderMapper {
    public void add(Order order);
    public List<Order> findByCondition(Order order);
    public Map findById4Detail(Integer id);
    public Integer findOrderCountByDate(String date);
    public Integer findOrderCountAfterDate(String date);
    public Integer findVisitsCountByDate(String date);
    public Integer findVisitsCountAfterDate(String date);
    public List<HotSetmealVo> findHotSetmeal();

    Integer findOrderCountBetweenDate(@Param("begin") String begin,@Param("end") String end);

    Integer findVisitsCountBetweenDate(@Param("begin") String begin,@Param("end") String end);


    Member findByName(@Param("name") String name);


    void deleteById(Integer id);

    MobileOrderVo findById(int id);

    void edit(Order order);
}
